﻿<%@ Page Title="医院订单明细统计" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true"
    CodeBehind="HospitalStatisticsMX.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.NewReport.HospitalStatisticsMX" %>

<%--<%@ Register Src="~/Common/AreaSelect.ascx" TagName="AreaSelect" TagPrefix="uc1" %>--%>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%-- <div id="tabnav">
        <ul>
            <li class="active"><a href="#">医院订单明细统计</a></li>
        </ul>
    </div>--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">订单提交时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"
                                    Width="80px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"
                                        Width="80px"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labGoodsId" runat="server" Text="产品流水号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsId" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labProductName" runat="server" Text="目录名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labRegCode" runat="server" Text="注册证号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtRegCode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="labOutlookc" Text="规格型号：" runat="server"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labPackUnit" Text="包装单位：" runat="server"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPackUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labHospitalName" runat="server" Text="医疗机构："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <%--<asp:Label ID="labSort" runat="server" Text="排序方式："></asp:Label>--%>
                            </td>
                            <td align="left">
                                <%--<asp:DropDownList ID="ddlFiled" runat="server">
                                    <asp:ListItem Value="GoodsId" Selected="True">产品编号</asp:ListItem>
                                    <asp:ListItem Value="PurchaseCount">采购数量</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmount">采购金额</asp:ListItem>
                                    <asp:ListItem Value="DistributeCount">配送数量</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmount">配送金额</asp:ListItem>
                                    <asp:ListItem Value="WarehouseCount">入库数量</asp:ListItem>
                                    <asp:ListItem Value="WareHouseAmount">入库金额</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlDirection" runat="server">
                                    <asp:ListItem Value="ASC" Selected="True">升序</asp:ListItem>
                                    <asp:ListItem Value="DESC">降序</asp:ListItem>
                                </asp:DropDownList>--%>
                            </td>


                        </tr>
                        <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>

                            <td align="right">生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName" runat="server" CssClass="input input_wa"></asp:TextBox>
                            </td>
                            <td align="right">申报企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyNameTB" runat="server" CssClass="input input_wa"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labCompanyName_PS" runat="server" Text="配送企业："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="Label1" runat="server" Text="订单状态："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlOrderDetailState" runat="server">
                                    <asp:ListItem Value="" Selected="True">全部</asp:ListItem>
                                    <asp:ListItem Text="已提交" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="已确认" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="拒绝配送" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">采购地区：
                            </td>
                            <td class="area" colspan="4" align="left">
                                <%--<uc1:AreaSelect ID="ddlArea" runat="server" />--%>
                                <uc3:AreaControl ID="ddlArea" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CssClass="btn" OnClick="btnSearch_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OperateType="导出"
                                    OnClick="btnExcel_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:LinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                                    Text="高级查询"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>

    <div style="margin-top: 10px">
        <asp:GridView ID="gvwInfo" runat="server" CssClass="mainlist" Width="100%"
            EmptyDataText="暂无符合条件的数据" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1+(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize %>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="产品流水号" DataField="GoodsId" />
                <asp:BoundField HeaderText="目录名称" DataField="ProductName" />
                <asp:BoundField HeaderText="规格型号" DataField="Outlookc" />
                <asp:BoundField HeaderText="包装单位" DataField="PackUnit" />
                <asp:BoundField HeaderText="医疗机构" DataField="HospitalName" />
                <asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />
                <asp:BoundField HeaderText="申报企业" DataField="CompanyName_TB" />
                <asp:BoundField HeaderText="配送企业" DataField="CompanyName_PS" />
                <%--<asp:BoundField HeaderText="类别名称" DataField="SortName" />--%>
                <asp:BoundField HeaderText="采购数量" DataField="PurchaseCount" />
                <asp:BoundField HeaderText="采购金额" DataField="PurchaseAmount" DataFormatString="{0:F4}" />
                <asp:BoundField HeaderText="提交时间" DataField="SubmiTime" />
                <asp:BoundField HeaderText="订单名称" DataField="OrderName" />
            </Columns>
        </asp:GridView>
    </div>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>统计:<asp:Label ID="lblCount" runat="server"></asp:Label>
            </li>
        </ul>
    </div>
</asp:Content>
